icondir = join_paths('icons', 'hicolor', '512x512', 'apps')
install_data(
  'org.korack.event.png',
  install_dir: join_paths(datadir, icondir),
)

po_dir = join_paths(meson.project_source_root(), 'po')

desktop_conf = configuration_data()

desktop_conf.set('icon', application_id)

desktop = i18n.merge_file(
  input: configure_file(
    input: files('org.korack.event.desktop.in.in'),
    output: 'org.korack.event.desktop.in',
    configuration: desktop_conf
  ),
  output: '@0@.desktop'.format(application_id),
  install: true,
  install_dir: desktopdir,
  po_dir: po_dir,
  type: 'desktop'
)
